#ifndef _PWM_H
#define _PWM_H

#include "system.h"


#define PWM1  TIM2->CCR2
#define PWM2  TIM1->CCR1
#define PWM3  TIM3->CCR2

#define InitFrictionWheel()     \
        PWM1 = 50;             \
        PWM2 = 50;
#define SetFrictionWheelSpeed_big(x) \
        PWM1 = x;                
#define SetFrictionWheelSpeed_small(x) 	\
        PWM2 = x;
#define SetImuTemp(x) 	\
        PWM3 = x;			
				
void TIM4_Init(void);
void TIM1_Init(void);

void TIM4_FrictionPwmOutp(int16_t pwm1,int16_t pwm2);

#endif
